package com.kingyun.gpsinspection.purificationservice.facade.service.jsm.employee;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.EmployeeCertificate;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EmployeeCertificateVo;

/**
 * Created by zmling on 2016/11/24.
 * 人员证书信息
 */
public interface JsmEmployeeCertificateService {

    /**
     * 新增人员证书类型
     *
     * @param employeeCertificate
     * @throws Exception
     */
    void addEmployeeCertificate(EmployeeCertificate employeeCertificate) throws Exception;

    /**
     * 人员证书类型分页查询
     *
     * @param employeeCertificateVo
     * @return
     * @throws Exception
     */
    JSONObject findEmployeeCertificateList(EmployeeCertificateVo employeeCertificateVo) throws Exception;

    /**
     * 修改人员证书类型
     *
     * @param employeeCertificate
     * @throws Exception
     */
    void updateEmployeeCertificate(EmployeeCertificate employeeCertificate) throws Exception;

    /**
     * 根据主键ID查询证书信息
     *
     * @param employeeCertificateId
     * @return
     * @throws Exception
     */
    EmployeeCertificateVo findEmployeeCertificate(String employeeCertificateId) throws Exception;

    /**
     * 删除人员证书
     *
     * @param certificate
     * @return
     * @throws Exception
     */
    int deleteCertificate(String certificate) throws Exception;

}
